API Documentation
ShaderManager.h
1 // ShaderManager.h
3 //
5 
6 namespace nkGraphics
7 {
13  class DLL_GRAPHICS_EXPORT ShaderManager final : public nkCommon::SingletonClass<ShaderManager>
14  {
15  public :
16 
21 
22  // Getters
29  bool isBuiltInShader (Shader* toTest) ;
30 
31  // Shaders
45  Shader* get (const nkMemory::StringView& name) ;
54  Shader* getByIndex (unsigned int index) ;
61  void rename (const nkMemory::StringView& oldName, const nkMemory::StringView& newName) ;
67  void erase (const nkMemory::StringView& name) ;
68  } ;
69 }
nkGraphics::ShaderManager::rename
void rename(const nkMemory::StringView &oldName, const nkMemory::StringView &newName)
nkGraphics::Shader
A shader class, feeding data to a Program.
Definition: Shader.h:14
nkGraphics::ShaderManager
Manages the sahders available in the component.
Definition: ShaderManager.h:14
nkGraphics::ShaderManager::isBuiltInShader
bool isBuiltInShader(Shader *toTest)
nkGraphics::ShaderManager::erase
void erase(const nkMemory::StringView &name)
nkGraphics::ShaderManager::createOrRetrieve
Shader * createOrRetrieve(const nkMemory::StringView &name)
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkGraphics::ShaderManager::getByIndex
Shader * getByIndex(unsigned int index)
nkGraphics::ShaderManager::~ShaderManager
~ShaderManager()
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ShaderManager::get
Shader * get(const nkMemory::StringView &name)